checks whether the session is set or not, if not it will redirect the user to login page.

50

session_start();
if(!isset($_SESSION['username'])){
   header("Location:Login.php");
}

Comments

Submit
0 Comments